@echo off 

rem 设置编码格式为GBK
chcp 65001

echo number1
echo number2

rem 用于注释

rem call 用于调用其他命令
call inner.bat 

rem type输出文本内容
type inner.bat

rem 定义变量
set x=1

set items=a b c d
set letters=x y z
for %%a in (%items%) do (
    for %%b in (%letters%) do (
        call inner.bat %%a %%b
    )
)
@REM 按照每行输出
for /F "delims=" %%a in (inner.bat) do (
    echo %%a
)
@REM 按照指定步数循环
for /L %%i in (1, 1, 5) do echo %%i

set src=abc  123 456
set trunk=%src:~2,4%
echo %trunk%
echo %src:~-5,4%